import request from '@/utils/request'

// 查询补发师作品列表
export function listHairFixTeacherPhoto(query) {
  return request({
    url: '/business/hairFixTeacherPhoto/list',
    method: 'get',
    params: query
  })
}

// 查询补发师作品详细
export function getHairFixTeacherPhoto(id) {
  return request({
    url: '/business/hairFixTeacherPhoto/' + id,
    method: 'get'
  })
}

// 新增补发师作品
export function addHairFixTeacherPhoto(data) {
  return request({
    url: '/business/hairFixTeacherPhoto',
    method: 'post',
    data: data
  })
}

// 批量上传老师作品文件 （随机分配）
export function massUploadTeacherPhotos(data) {
  return request({
    url: '/business/hairFixTeacherPhoto/massUploadTeacherPhotos',
    method: 'post',
    data: data
  })
}

// 修改补发师作品
export function updateHairFixTeacherPhoto(data) {
  return request({
    url: '/business/hairFixTeacherPhoto',
    method: 'put',
    data: data
  })
}

// 删除补发师作品
export function delHairFixTeacherPhoto(id) {
  return request({
    url: '/business/hairFixTeacherPhoto/' + id,
    method: 'delete'
  })
}
